home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Kompuutteri Kaikille K-CD 2008 #18
/
KCD200818.ISO
/
Euro Truck
/
ets_1_00_setup.exe
/
base.scs
/
effect
/
generic
/
dry_vcol_tex
/
nv2x_fog.nvrc
< prev
next >
Wrap
Text File
|
2008-07-25
|
314b
|
31 lines
# dry.vcol.tex.fog
#var sampler2D texture : texunit 0
!!TS1.0
texture_2d();
!!RC1.0
{
rgb
{
col0.rgb = col0.rgb * tex0.rgb;
}
alpha
{
col0.a = col0.a * tex0.a;
}
}
# fog_exp2(mix.rgb, fog_color, ...)
out.rgb = lerp(fog.a, col0.rgb, fog);
# return half4(fogged, opacity)
out.a = col0.a;
# eof #